//回到顶部
var id;
	
function returnTop(){
	id = setInterval('goTop()',10);
}

function goTop(){
	scrollBy(0, -10);

	var scrollTop = document.documentElement.scrollTop + document.body.scrollTop;
	
	if (scrollTop == 0) {
		clearInterval(id);
	}
}

//导航栏菜单的显示与隐藏
$(function() {
	$('#home').click(function() {
		$('#sub-menu').slideToggle("slow");
	});
});

